package com.example.blenderandroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;

//TODO when connecting, check to make sure that the UUID's match

public class ConnectBtActivity extends Activity {
	public static final String BT_ADDRESS = "com.example.blenderandroid.ConnectBtActivity.BT_ADDRESS";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_connect_bt);
		
		Intent connectIntent = getIntent();
		
//TODO use this address to connect to a device
		String btAddress = connectIntent.getStringExtra(BT_ADDRESS);
		Log.i("BT address", btAddress);
		
//TODO disable back button
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.connect_bt, menu);
		return true;
	}
}
